using EasyCaching.Core;
using Microsoft.AspNetCore.Http;
using XjjXmm.Infrastructure.Constant;
using XjjXmm.Infrastructure.Ioc;
using xjjxmm.infrastructure.ToolKit;
using XjjXmm.Infrastructure.User;
using xjjxmm.infrastructure.Webs;

namespace xjjxmm.infrastructure.service;

public class BaseService
{
    // protected readonly IUserContext UserContext = IocManager.Instance.GetService<IUserContext>();

    private IUserContextAccessor UserContextAccessor => IocManager.Instance.GetService<IUserContextAccessor>();

    protected UserContext UserContext => UserContextAccessor.UserContext!;
}
